/**
 *
 * © Bahadir Zeren 2011
 * bzeren@gmail.com
 * No warranties, express or implied, are made for this program.
 *
 */

package org.baatar.opt.genetic.chromosome;

import java.io.Serializable;

/**
 * Factory class for the chromosome objects.
 * 
 */
public interface IChromosomeFactory<T> extends Serializable {

    /**
     * Generates a chromosome object.
     * 
     * @return IChromosome generated chromosome object.
     */
    public IChromosome<T> createChromosome();

    /**
     * Gives the length of the chromosome objects which will be generated by 
     * this chromosome factory object.
     * 
     * @return int length of the generated chromosomes.
     */
    public int getChromosomeLength();
}
